function y = Diagonal_9(x)
% Diagonal 9 function
% x0=ones(n,1);
n=length(x); y=0;
for i=1:n-1
    y=y+exp(x(i))-i*x(i);
end
y=y+10000*(x(n))^2;